import dynamic from "next/dynamic";
import React, {
  useEffect,
  useCallback,
  Suspense,
  useRef,
  useState,
} from "react";
import type { AppProps } from "next/app";
import { Provider } from "react-redux";
import { store } from "../store/store";
import "../styles/globals.css";

import zhCN from "antd/locale/zh_CN";
import { ConfigProvider } from "antd";
import theme from "../styles/config";

const MyApp = ({ Component, pageProps }: AppProps) => {
  return (
    <Provider store={store}>
      <ConfigProvider theme={theme} locale={zhCN}>
        <Component {...pageProps} />
      </ConfigProvider>
    </Provider>
  );
};
export default MyApp;
